package com.ustadzmenjawab.conf;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class Configuration {
	public static String CONFIG_LOCATION = "conf/config.properties";
	private static Properties prop;
	
	static{
		prop = new Properties();
		try {
			prop.load(new FileInputStream(CONFIG_LOCATION));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public static String getProperty(String key){
		return prop.getProperty(key);
	}
}
